// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

AndroidAppItem{
    id: _root
    width: _border.width
    height: _border.height

    signal clicked(variant mouse)

    Image{
        id: _border
        width: 695 * viewScale
        height: 97 * viewScale
        source: "images/ComGoogleAndroidGooglequicksearchbox_widget.png"
        Image{
            id: _logo
            anchors.verticalCenter: parent.verticalCenter
            x: 20 * _root.viewScale
            width: 132 * _root.viewScale
            height: 64 * _root.viewScale
            source: "images/ComGoogleAndroidGooglequicksearchbox_widget_logo.png"
        }
        Image{
            anchors.verticalCenter: parent.verticalCenter
            x: 610 * _root.viewScale
            width: 62 * _root.viewScale
            height: 62 * _root.viewScale
            source: "images/ComGoogleAndroidGooglequicksearchbox_widget_logo_microphone.png"
        }

        MouseArea{
            id: _mouseArea
            anchors.fill: parent
            onClicked: {
                _root.clicked(mouse);
            }
        }
        states: [
            State{
                name: "pressed"
                when: _mouseArea.pressed
                PropertyChanges {
                    target: _logo
                    source: "images/ComGoogleAndroidGooglequicksearchbox_widget_logo_pressed.png"
                }
            }
        ]
    }
}
